package com.yuxi.service;

import com.yuxi.mapper.RedpackMapper;
import com.yuxi.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by yuxi on 16/11/6.
 */
@Service
public class RedpackService {
    @Autowired
    private RedpackMapper redpackMapper;

    public void update(Student student){
        redpackMapper.update(student);
    }

    public void insert(Student student) {
        redpackMapper.insert(student);
    }
}
